import request from '@/utils/request'

// 退保保列表
export function getCancellationList(params) {
  return request({
    url: '/car/carWorkOrder/insurance/refundList',
    method: 'get',
    params: params
  })
}

//新增续保信息提交
export function submitRenewal(data) {
  return request({
    url: '/car/carWorkOrder/addRenewalInsurance',
    method: 'post',
    data:data
  })
}

export function getCancellationDetails(data) {
  return request({
    url: '/car/insurance/getRefundInsuranceList',
    method: 'post',
    data:data
  })
}

export function submitCancellationDetails(data) {
  return request({
    url: '/car/insurance/addRefundInsurance',
    method: 'post',
    data:data
  })
}

export function getDetails(id) {
  return request({
    url: `/car/insurance/detail/${id}`,
    method: 'get',
  })
}
